/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.dspot.declex.actions.runnable;

import ohos.agp.window.dialog.IDialog;

/**
 * 对话框中多选择单击可运行
 *
 * @author Administrator
 * @since 2021-07-14
 */
public abstract class DialogMultiChoiceClickRunnable
    implements Runnable, IDialog.CheckBoxClickedListener {

    /**
     * 对话框
     */
    public IDialog dialog;
    /**
     * 位置
     */
    public int position;
    /**
     * 检查
     */
    public boolean checked;

    /**
     * 在点击
     *
     * @param iDialog 我的对话框
     * @param i1 i1
     * @param b1 b1
     */
    @Override
    public void onClick(IDialog iDialog, int i1, boolean b1) {
        this.dialog = iDialog;
        this.position = i1;
        this.checked = b1;
        run();

    }
}
